# How to Install GCC and G++ Compiler on Ubuntu 26.04 LTS (Linux) | Complete Guide
In this complete beginner-friendly tutorial, you'll learn **how to install the GCC and G++ compilers on Ubuntu 26.04 LTS Linux**. GCC is the GNU Compiler Collection and provides the standard C compiler on Ubuntu, while G++ is the GNU C++ compiler. Ubuntu's official developer documentation recommends installing the `gcc` and `g++` packages through APT.
We'll also show you how to install the **Build Essential** package, which is often the easiest option when setting up a complete C/C++ development environment. On Ubuntu 26.04 LTS, `build-essential` depends on GCC, G++, the C development libraries, and `make`.
## What You'll Learn
In this tutorial, we'll cover:
* What is GCC?
* What is G++?
* GCC vs G++
* Why you need a C/C++ compiler
* Installing GCC on Ubuntu 26.04 LTS
* Installing G++ on Ubuntu 26.04 LTS
* Installing the `build-essential` package
* Checking GCC and G++ versions
* Creating your first C program
* Compiling a C program with GCC
* Creating your first C++ program
* Compiling a C++ program with G++
* Running compiled programs
* Understanding compiler errors
* Troubleshooting GCC/G++ installation problems
## Step 1: Open the Ubuntu Terminal
Start by opening the Terminal application.
You can use the keyboard shortcut:
## GCC vs G++
It's important to understand the difference:
| Compiler | Primary use |
| ----------------- | --------------
|
Discover Google Gemini Spark, Google's p...
Your hero is only as interesting as the ...
Holafly is the global leader in eSIMs fo...
# How to Install GCC and G++ Compiler on...
Which AI certification should you actual...